import BaseService from './_BaseService'
import axios from "axios";
import config from "../config";

class DictionaryService extends BaseService {
  root = window.apiPath + '/dictionaries'
  find (code) {
    return axios.get(config.SERVER_URL + `${this.root}?size=999&query=code==${code}&sort=orderx`, {responseType: 'json'})
      .then(resp => resp.data)
  }
}

export default new DictionaryService()
